﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NGourd.Core.Assertions
{
    public class Assertions : IAssertions
    {
        public void Fail(string message)
        {
            throw new Exception(message);
        }

        public void That(bool assertion, string message)
        {
            if (assertion == false)
                Fail(message);
        }
    }

    public interface IAssertions : IFluentApi
    {
        void Fail(string message);
        void That(bool assertion, string message);
    }
}
